<template>
	<view class="content">
		<u-navbar title=" " :border-bottom="false" back-icon-color="#ffffff" title-color="#fff" :background="{backgroundColor:'#000'}"></u-navbar>
		
		<view class="title">
			选择您的性别
		</view>
		<view class="sex">
			<view class="nan" @click="nav(1)">
				<view class="bg">
					<image src="../../static/guangyiguang/nan.png" mode="widthFix"></image>
				</view>
				<view class="text">
					男
				</view>
			</view>
			<view class="nan" @click="nav(2)">
				<view class="bg">
					<image src="../../static/guangyiguang/nv.png" mode="widthFix"></image>
				</view>
				<view class="text">
					女
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		onLoad() {
		},
		methods: {
			nav(e){
				console.log(e);
				uni.navigateTo({
					url:"/pages/guangyiguang/index?sex="+e
				})
			}
		},
	}
</script>

<style lang="scss" scoped>
	.content {
		background: #2A2931;
		min-height: 100vh;
		.list{
			padding: 10rpx 0rpx;
		}
		.title{
			margin:60rpx auto;
			width: 80%;
			text-align: center;
			color: #fff;
			font-size: 48rpx;
		}
		.sex{
			width: 70%;
			margin: 0 auto;
			display: flex;
			justify-content: space-between;
			
			.nan{
				width: 220rpx;
				text-align: center;
				.bg{
					background: #848484;
					border-radius: 50%;
					width: 220rpx;
					height: 220rpx;
					line-height: 220rpx;
					display: flex;
					
					image{
						width: 70%;
						margin: auto;
					}
				}
				.text{
					color: #fff;
					font-size: 38rpx;
					margin-top: 20rpx;
				}
			}
		}
	}
	
</style>